﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="GroupAssociationList.aspx.cs"  
    MasterPageFile="../MasterPages/MedianamikModule.Master" 
    Inherits="Medianamik.Service.ActiveDirectory.GroupAssociationList" %>
<%@ Import Namespace="Medianamik.Core"%>

<asp:Content ID="ContextMenuContent" ContentPlaceHolderID="ContextMenu" runat="server">
	<asp:UpdatePanel ID="addNodeUpdatePanel" runat="server" UpdateMode="Conditional" ChildrenAsTriggers="true">
        <ContentTemplate>	        
                <a href="<%= ManagementURL %>" class="Action BtAjoutPage"><asp:Localize ID="Localize1" runat="server" 
                    Text="<%$ Resources: Medianamik_ContentManagement, NewNodeButtonText%>" /></a>        
	        <asp:HyperLink runat="server" ID="ReturnLink" CssClass="Action BtAnnuler-Inactif" Text="<%$ Resources: Medianamik_Global,Cancel %>" />
	        
	    </ContentTemplate>
	</asp:UpdatePanel>
</asp:Content>

<asp:Content ID="CenterContent" ContentPlaceHolderID="CenterContent" runat="server">
    <asp:UpdatePanel ID="mainUpdatePanel" runat="server" UpdateMode="Conditional">
        <ContentTemplate>        
            <telerik:RadGrid runat="server" ID="GroupAssociations" EnableEmbeddedSkins="false" Skin="Medianamik" AllowPaging="false" AutoGenerateColumns="false" Width="100%">
                <MasterTableView DataKeyNames="ID">
                    <Columns>
                        <telerik:GridTemplateColumn HeaderText="">
		                    <HeaderTemplate><asp:Literal runat="server" Text="<%$ Resources: Medianamik_ActiveDirectoryService, GroupsNameColumn %>"></asp:Literal></HeaderTemplate>
		                    <ItemTemplate>
		                        <%# ((Node)Container.DataItem).DefaultInstance.Properties["MedianamikGroup"].Value %> <=> <%# ((Node)Container.DataItem).DefaultInstance.Properties["ActiveDirectoryGroup"].Value %>
		                    </ItemTemplate>
		                </telerik:GridTemplateColumn>
		            </Columns>
                </MasterTableView>
            </telerik:RadGrid>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
